from django.contrib import admin
from .models import *


# Register your models here.

class ClassRoomAdmin(admin.ModelAdmin):
    empty_value_display = '这里没有条件值哦'
    search_fields = ['name']


class DeviceAdmin(admin.ModelAdmin):
    empty_value_display = '这里没有条件值哦'
    search_fields = ['number', 'name']


class HygieneAdmin(admin.ModelAdmin):
    empty_value_display = '这里没有条件值哦'
    search_fields = ['cleaner']


admin.site.register(ClassRoom, ClassRoomAdmin)
admin.site.register(Device, DeviceAdmin)
admin.site.register(Hygiene, HygieneAdmin)
